package com.iring.domain.config.prop;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * paypal配置属性
 *
 * @author wanggan
 */
@Configuration
@ConfigurationProperties(prefix = "com.zycoo.pay.paypal")
public class PayPalProperties {

    private String clientId;

    private String clientSecret;

    private String mode;

    private String returnUrl;

    private String cancelUrl;

    private String currency;


    @Override
    public String toString() {
        return "{clientId:" + clientId + ",clientSecret:" + clientSecret + ",mode:" + mode + "}";
    }

    public String getClientId() {
        return clientId;
    }

    public String getClientSecret() {
        return clientSecret;
    }

    public String getMode() {
        return mode;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public String getCancelUrl() {
        return cancelUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public void setCancelUrl(String cancelUrl) {
        this.cancelUrl = cancelUrl;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }
}
